import request from '../../utils/request.js'

//获取学生作业列表
export const getWorkListAPI=(params)=>{
  return request({
    url:'/student/mark',
    method:'get',
    params:params
  })
}

//保存、修改作业详情
export const saverTaskListAPI=(sQAnswer)=>{
  return request.put('/student/mark',sQAnswer)
}

//查询作业详情
export const queryTaskListAPI=(taskId)=>{
  return request({
    url:'/student/mark/taskId',
    method:'get',
    params:{
      taskId:taskId
    }
  })

}
//提交按钮-上传到AI评分
export const subListAPI=(sQAnswer)=>{
  return request.post('/student/mark/ai',sQAnswer)
}

//删除题目的文件答案
export const deleteFileAPI=(answerId)=>{
  return request({
    url:'/common',
    method:'delete',
    params:{
      answerId:answerId
    }
  })
}  

//删除题目的文件答案
export const getMarkAPI=(taskId)=>{
  return request({
    url:'/student/mark/getMark',
    method:'get',
    params:{
      taskId:taskId
    }
  })
}  
